package indi.kider.server.employee.service;


import indi.kider.common.model.employee.Employee;
import indi.kider.common.model.employee.EmployeePart;
import indi.kider.common.model.employee.Enterprise;
import indi.kider.common.model.employee.TenantQuery;
import pers.vankid.common.utils.page.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * Created by sq on 2018/8/19.
 */
public interface EmployeePartService {
    /**
     * 保存合作员工和房间号分配关系
     * @param employeePart
     * @param employeeId
     * @return
     */
    String saveEmployeePart(EmployeePart employeePart,Long employeeId) throws Exception;


    /**
     * 清除分配关系
     * @param employeePart
     * @return
     * @throws Exception
     */
    String delEmployeePart(EmployeePart employeePart) throws Exception;

    /**
     * 查询合作企业租客
     * @param request
     * @param employee
     * @return
     */
    List<Map> getTenantPartList(PageRequest<TenantQuery> request,Employee employee);

    /**
     * 查询合作企业房源
     * @param request
     * @param employee
     * @return
     */
    List<Map> getPartHouseList(PageRequest<TenantQuery> request, Employee employee);

    /**
     * 根据房间ID获取 合作企业管理员
     * @param houseId
     * @return
     */
    List<Employee> getEmployeePartByHouseId(Long houseId);

}
